package cn.hg.solon.youcan.common.constant;

import org.dromara.hutool.http.meta.HttpStatus;

/**
 * @author 胡高
 */
public interface AppConstants {
    /**
     * 默认分页号：1
     */
    static final int DEFAULT_PAGE_NUMBER = 1;
    /**
     * 默认分页大小：10
     */
    static final int DEFAULT_PAGE_SIZE = 10;

    /**
     * 返回参数data的名称：data
     */
    static final String RETURN_PARA_NAME_DATA = "data";

    /**
     * 返回参数success的名称：success
     */
    static final String RETURN_PARA_NAME_SUCCESS = "success";

    /**
     * 返回参数code的名称：code
     */
    static final String RETURN_PARA_NAME_CODE = "code";

    /**
     * 返回参数message的名称：message
     */
    static final String RETURN_PARA_NAME_MESSAGE = "message";

    /**
     * 失败消息：failed
     */
    static final String RETURN_MESSAGE_VALUE_FAILED = "failed";

    /**
     * 成功消息：successed
     */
    static final String RETURN_MESSAGE_VALUE_SUCCESSED = "successed";

    /**
     * 默认失败参数值：500
     */
    static final int RETURN_CODE_VALUE_FAILED = HttpStatus.HTTP_INTERNAL_ERROR;

    /**
     * 默认成功参数值：200
     */
    static final int RETURN_CODE_VALUE_SUCCESSED = HttpStatus.HTTP_OK;
}
